import 'package:fluro/fluro.dart';
import 'package:mi_mang_flutter/page/setting/personal_info/nickname_page.dart';
import 'package:mi_mang_flutter/page/setting/personal_info/signature_page.dart';
import 'package:mi_mang_flutter/routers/router_init.dart';

/// 设置页面路由
class PersonalInfoRouter implements IRouterProvider {
  /// 昵称
  static String nickname = "/nickname";

  /// 个性签名
  static String signature = "/signature";

  @override
  void initRouter(FluroRouter router) {
    /// 昵称
    router.define(
      nickname,
      handler: Handler(handlerFunc: (_, params) => NicknamePage()),
    );

    /// 个性签名
    router.define(
      signature,
      handler: Handler(handlerFunc: (_, params) => SignaturePage()),
    );
  }
}
